{% extends 'base.html' %}
{% block title %}注册{% endblock %}
{% block content %}
    <h1>用户注册</h1>
    <form action="" method="post" name="signin">
        {{ form.hidden_tag() }}
        <table>
            <tr>
                <td>{{ form.nickname.label }}</td>
                <td>
                    {{ form.nickname(size=40) }}
                    {% for error in form.nickname.errors %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}

                </td>
            </tr>
            <tr>
                <td>{{ form.email.label }}</td>
                <td>
                    {{ form.email(size=40) }}
                    {% for error in form.email.errors %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}

                </td>
            </tr>
            <tr>
                <td>{{ form.password.label }}</td>
                <td>
                    {{ form.password(size=40) }}
                    {% for error in form.password.errors %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}

                </td>
            </tr>
            <tr>
                <td>{{ form.confirm_password.label }}</td>
                <td>
                    {{ form.confirm_password(size=40) }}
                    {% for error in form.confirm_password.errors %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="注册"/></td>
            </tr>
        </table>
    </form>
{% endblock %}